package com.jiaai.cloud.chatroom.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.base.page.CustomPage;
import com.jiaai.cloud.chatroom.entity.TChatRoom;
import com.jiaai.cloud.chatroom.mapper.TChatRoomMapper;
import com.jiaai.cloud.chatroom.service.ITChatRoomService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiaai.cloud.live.entity.TAnchor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 聊天室 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-01
 */
@Service
public class TChatRoomServiceImpl extends ServiceImpl<TChatRoomMapper, TChatRoom> implements ITChatRoomService {
    /**
     * 查找房间列表
     * @param
     * @return
     */
    @Override
    public CustomPage<TChatRoom> findRoomFully(Page page,@Param("ew") Wrapper wrapper) {
        page.setRecords(baseMapper.findRoomFully(page,wrapper));
        return new CustomPage(page);
    }
}
